<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
<@frame.head "南航明珠商城-用户列表">
</@frame.head>

<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 后台管理中心 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 会员业务开关管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="${contextPath}/business/business_rules_info" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
<form method="post" name="query_business_form"  id="query_business_form" action="${contextPath}/business/add_business_rules_info" >    
        <div style="border-bottom: 1px solid #ddd;">
               <b style="font-size: 16px;">设置会员业务开关：</b>
         </div>
         <table style="margin-top: 20px;" class="table table-bg">
           	<tr >
            <td>
            
                <#if businessRulesCommand.airTicetMobileCommond.isCheck>
                    <input type="checkbox" checked="checked" name="airTicetMobileCommond.isCheck" value="1"/>
                <#else>
                    <input type="checkbox" name="airTicetMobileCommond.isCheck" value="1"/>
                </#if>
                限制未绑定手机号的会员兑换机票优惠券
            </td>
        	</tr>
            <tr>
               <td>
                    <#if  businessRulesCommand.airTicetMobileCommond.hoursCheck>
                       <input type="checkbox" checked="checked" name="airTicetMobileCommond.hoursCheck"  id="box" value="1"/>
                       虚拟商品经<input name="airTicetMobileCommond.hours" id="hours" value="${businessRulesCommand.airTicetMobileCommond.hours }" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">小时后自动发放电子码
				<#else>
                       <input type="checkbox" name="airTicetMobileCommond.hoursCheck" id="box" value="1"/>
                       虚拟商品经<input name="airTicetMobileCommond.hours" id="hours" value="${businessRulesCommand.airTicetMobileCommond.hours }" disabled="true" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">小时后自动发放电子码
                   </#if>
                   <div style="color: red;">*设置延时发送时请填写小时数大于0</div>
               </td>
           </tr>
                                               <tr>
                                    <td>
                                    虚拟商品接收电子码手机号<select name="airTicetMobileCommond.isChangePhone">
                                    <option value="1" <#if businessRulesCommand.airTicetMobileCommond.isChangePhone == 1> selected = "selected" </#if> >可修改</option>
                                    <option value="2" <#if businessRulesCommand.airTicetMobileCommond.isChangePhone == 2> selected = "selected" </#if> >不可修改</option>
                                    </select>
                                    ，订单详情页面<select name="airTicetMobileCommond.isHidden">
                                    <option value="1" <#if businessRulesCommand.airTicetMobileCommond.isHidden == 1> selected = "selected" </#if> >隐藏</option>
                                    <option value="2" <#if businessRulesCommand.airTicetMobileCommond.isHidden == 2> selected = "selected" </#if> >显示</option>
                                    </select>电子码信息
                                    </td>
                                    </tr>
                                    <tr>
                                    <td>
                                 <select name="airTicetMobileCommond.isHiddenPcTool">
                                    <option value="1" <#if businessRulesCommand.airTicetMobileCommond.isHiddenPcTool == 1> selected = "selected" </#if> >隐藏</option>
                                    <option value="2" <#if businessRulesCommand.airTicetMobileCommond.isHiddenPcTool == 2> selected = "selected" </#if> >显示</option>
                                    </select>
                                   PC端侧边工具栏
                                    </tr>
                                    
           <tr>
               <td>
                   <input class="btn btn-success radius" type="submit" value="修改"/>
               </td>
           </tr>
         </table>
</form>
                            <div style="border-top: 2px solid #ddd;">
                                <table class="monitor_log">
                                    <tr>
                                        <td>
                                            最后修改人：${businessRulesLog.lastModifyName }
                                        </td>
                                        <td>
                                            修改时间：${(businessRulesLog.lastModifyDate?string("yyyy-MM-dd HH:mm:ss"))!}
                                            
                                        </td>
                                    </tr>
                                </table>
                            </div>
</div>
<@frame.end "default">
</@frame.end>
</html>
<script type="text/javascript" src="${contextPath}/resources/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/laypage/laypage.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/brand/query_brand.js"></script>
<script type="text/javascript">
var path="${contextPath}";
var oBox= document.getElementById('box');
oBox.onclick =function(){
  if(this.checked){
      document.getElementById("hours").disabled = false;
} else{
  document.getElementById('hours').value="";
  document.getElementById("hours").disabled = true;
}
}

</script>